package com.report.opportunity.handler;

import com.report.commons.events.opportunity.OpportunityCreatedEvent;
import org.axonframework.config.ProcessingGroup;
import org.axonframework.eventhandling.EventHandler;
import org.springframework.stereotype.Component;

/**
 * @author lichong
 * @create 2018-01-21 上午10:17
 **/
@Component
@ProcessingGroup("opportunity")
public class OpportunityHandler {

    @EventHandler
    public void on(OpportunityCreatedEvent event){
        System.out.println("query side -> " + event.getId());
    }

}
